package com.ruoyi.system.util;

public class DoubleUtil {

    public static Double sum(Double a, Double b) {
        if (a == null) {
            a = 0d;
        }
        if (b == null) {
            b = 0d;
        }
        return a + b;
    }
    public static Double cut(Double a, Double b) {
        if (a == null) {
            a = 0d;
        }
        if (b == null) {
            b = 0d;
        }
        return a - b;
    }
}
